USE [fKanban]
GO

/****** Object:  Table [dbo].[tbTaskHistory]    Script Date: 11/02/2011 15:48:36 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[tbTaskHistory](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[TaskId] [int] NOT NULL,
	[GoalId] [int] NOT NULL,
	[SprintId] [int] NOT NULL,
	[UserStoryId] [int] NOT NULL,
	[DashboardId] [int] NOT NULL,
	[OldStatus] [int] NOT NULL,
	[NewStatus] [int] NOT NULL,
	[Status] [int] NOT NULL,
	[Date] [datetime] NOT NULL,
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[tbTaskHistory] ADD  DEFAULT ((0)) FOR [TaskId]
GO

ALTER TABLE [dbo].[tbTaskHistory] ADD  DEFAULT ((0)) FOR [GoalId]
GO

ALTER TABLE [dbo].[tbTaskHistory] ADD  DEFAULT ((0)) FOR [SprintId]
GO

ALTER TABLE [dbo].[tbTaskHistory] ADD  DEFAULT ((0)) FOR [UserStoryId]
GO

ALTER TABLE [dbo].[tbTaskHistory] ADD  DEFAULT ((0)) FOR [DashboardId]
GO

ALTER TABLE [dbo].[tbTaskHistory] ADD  DEFAULT ((0)) FOR [OldStatus]
GO

ALTER TABLE [dbo].[tbTaskHistory] ADD  DEFAULT ((0)) FOR [NewStatus]
GO

ALTER TABLE [dbo].[tbTaskHistory] ADD  DEFAULT ((0)) FOR [Status]
GO

ALTER TABLE [dbo].[tbTaskHistory] ADD  DEFAULT (getdate()) FOR [Date]
GO


